<?php

namespace app\model;

use app\BaseModel;
use think\model\relation\HasMany;

/**
 * 权限规则
 */
class AuthRuleTypeModel extends BaseModel
{
    protected $name = 'auth_rule_type';

    /**
     * 菜单权限
     * @return HasMany
     */
    public function AuthRule(): HasMany
    {
        return $this->hasMany(AuthRuleModel::class,'type_id');
    }

    /**
     * 菜单权限-区域版
     * @return HasMany
     */
    public function PlatformAuthRule(): HasMany
    {
        return $this->hasMany(PlatformAuthRuleModel::class,'type_id');
    }
}